Former is safer (in case TIF_IO_BITMAP is out-of-sync with actual
existence of an I/O bitmap for this process) and more readable, and
probably results in faster code too.
Signed-off-by: Keir Fraser <keir@xensource.com>
mcl++;
}
- if (unlikely(test_tsk_thread_flag(prev_p, TIF_IO_BITMAP)
- || test_tsk_thread_flag(next_p, TIF_IO_BITMAP))) {
+ if (unlikely(prev->io_bitmap_ptr || next->io_bitmap_ptr)) {
iobmp_op.bitmap = (char *)next->io_bitmap_ptr;
iobmp_op.nr_ports = next->io_bitmap_ptr ? IO_BITMAP_BITS : 0;
mcl->op = __HYPERVISOR_physdev_op;